QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++11

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    appcommon.cpp \
    config/appconfig.cpp \
    config/appconfigitems.cpp \
    config/configmanager.cpp \
    datetime/datetime.cpp \
    datetime/timespan.cpp \
    log/app_log.cpp \
    log/log.cpp \
    main.cpp \
    mainwindow.cpp \
    process/singleton_app.cpp \
    shell/serviceutils.cpp \
    shell/shellutils.cpp \
    shell/softetherclient.cpp \
    shell/systeminfoutils.cpp \
    shell/threadshellutils.cpp \
    statusnotifieritem.cpp \
    thread/thread.cpp \
    util/aes_util.cpp \
    util/qaesencryption.cpp \
    util/string_util.cpp \
    util/strptime_win.cpp \
    util/system_util.cpp \
    util/util.cpp \
    windowlogin.cpp

HEADERS += \
    appcommon.h \
    config/appconfig.h \
    config/appconfigitems.h \
    config/configmanager.h \
    datetime/datetime.h \
    datetime/timespan.h \
    log/app_log.h \
    log/log.h \
    mainwindow.h \
    process/singleton_app.h \
    shell/serviceutils.h \
    shell/shellutils.h \
    shell/softetherclient.h \
    shell/systeminfoutils.h \
    shell/threadshellutils.h \
    statusnotifieritem.h \
    thread/thread.h \
    util/aes_util.h \
    util/qaesencryption.h \
    util/string_util.h \
    util/strptime_win.h \
    util/system_util.h \
    util/util.h \
    windowlogin.h

FORMS += \
    mainwindow.ui \
    windowlogin.ui


DEFINES += lib_spdlog lib_toml11 lib_thread
include(common.pri)


CONFIG += link_pkgconfig
PKGCONFIG += appindicator3-0.1

# 如果仍找不到头文件，手动指定路径
INCLUDEPATH += /usr/include/libappindicator3-0.1
LIBS += -lappindicator3

RESOURCES += \
    qrc.qrc
